package net.ericaro.neojavagen.blocks ;
import net.ericaro.neojavagen.classes.FormalParameter;
import net.ericaro.neojavagen.blocks.Block ;

/**
* *<pre> CatchClause :
    catch ( FormalParameter ) Block
</pre>
*/
public class CatchClause   {

FormalParameter formalparameter;
Block block ;

public CatchClause( FormalParameter formalparameter, Block block ){
	this.formalparameter = formalparameter; this.block = block ;
	}


public String toString(){
	StringBuilder stringbuilder = new StringBuilder();
	stringbuilder.append( "catch" ).append(" ");
stringbuilder.append( "(" ).append(" ");
stringbuilder.append( this.formalparameter ).append(" ");
stringbuilder.append( ")" ).append(" ");
stringbuilder.append( this.block ).append(" ") ;
	return stringbuilder.toString();
}

}
